package com.mineoj.judge;


import com.mineoj.model.dto.competitionscore.CompetitionScoreAddRequest;
import com.mineoj.model.entity.CompetitionQuestion;
import com.mineoj.model.entity.CompetitionScore;
import com.mineoj.model.entity.QuestionSubmit;

/**
 * 判题服务
 */
public interface JudgeService {

    /**
     * 判题
     * @param questionSubmitId
     * @return
     */
    QuestionSubmit doJudge(long questionSubmitId);

    /**
     * 比赛判题
     * @param competitionScoreId
     * @return
     */
    CompetitionScore doCompetitionJudge(Long competitionScoreId, CompetitionScoreAddRequest competitionScoreAddRequest, CompetitionQuestion competitionQuestion);
}
